<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title>抖音无水印解析</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="Author" content="larry" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="format-detection" content="telephone=no">
    <link rel="Shortcut Icon" href="/favicon.ico" />
    <link rel="stylesheet" type="text/css" href="/static/admin/common/layui/css/layui.css" media="all">
    <link rel="stylesheet" type="text/css" href="/static/admin/backstage/css/base.css" media="all">
    <link rel="stylesheet" type="text/css" href="/static/admin/common/css/animate.css" media="all">
    <link rel="stylesheet" type="text/css" href="/static/admin/backstage/css/admin.css" media="all">
</head>
<body>
<div class="layui-fluid">
    <div class="larry-container larryms-admin">
        <div class="layui-row layui-col-space20">
            <div class="layui-col-xs12 animated fadeInRightBig">
                <section class="larry-panel">

                    <div class="larryms-page-header">
                        <span class="tit">抖音无水印解析</span>
                    </div>
                    <div class="larryms-page-body">
                        <div class="layui-card">
                            <div class="layui-card-header">使用方法:</div>
                            <div class="layui-card-body">
                                1.打开抖音短视频APP，点开某个视频，点击右下角分享按钮，在分享弹框中点击复制链接或通过分享到微信QQ等获取分享链接
                                <br>
                                2.将刚才复制的链接粘贴到下面的输入框
                                <br>
                                3.点击解析视频把生成的网址复制到浏览器中打开
                            </div>
                        </div>
                        <form class="layui-form" method="get">
                            <div class="layui-form-item">
                                <label class="layui-form-label">输入网址</label>
                                <div class="layui-input-block">
                                    <input type="text" name="url" value="http://v.douyin.com/TgFe4/" class="layui-input" placeholder="请输入要下载文件的URL">
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <button class="layui-btn" lay-submit lay-filter="douyin">解析视频</button>
                                    <a href="" class="layui-btn layui-btn-normal" id="bofang" target="_blank" style="display: none">点击播放</a>
                                    <a type="reset" class="layui-btn layui-btn-danger" href="javascript:history.go(-1);">返回</a>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-input-block">
                                    <label style="line-height: 38px;font-weight: bold" id="zhilian"></label>
                                    <label style="line-height: 38px;font-weight: bold" id="beizhu"></label>
                                </div>
                            </div>
                        </form>
                    </div>
                </section>
            </div>
        </div>
    </div>
</div>
<!-- 加载js文件-->
<script type="text/javascript" src="/static/admin/common/layui/layui.js"></script>
<script>
    //Demo
    layui.use(['form', 'layer'], function(){
        var form = layui.form;
        var $ = layui.$ //重点处
            ,layer = layui.layer;
        //ajax表单提交
        form.on("submit(douyin)", function(data){
            $.ajax({
                type:"GET",
                url:"{:url('admin/tool/douyin')}",
                dataType:"JSON",
                data:data.field,
                success:function(res){
                    if(res.code == '1'){
                        layer.msg(res.msg, {icon: 6});
                        $('#v1').attr('src',res.url);
                        $('#zhilian').html('直链：' + res.url + "<br />");
                        $('#bofang').attr('href',res.url);
                        $('#download').attr('href',res.url);
                        $("#bofang").show();
                        $('#beizhu').html('备注：' + res.name);
                        $("#media").load();
                        // $('#download').attr('href',res.vip_url);
                        layer.msg(res.msg, {icon: 6});
                    }else{
                        layer.msg(res.msg, {icon: 5});

                    }
                }
            });
            return false;
        })
    });
</script>
</body>
</html>




